<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>选择地址</title>
<link rel="stylesheet" href="__PUBLIC__/Mobile/css/css.css">
<script src="__PUBLIC__/Mobile/js/jquery-1.9.1.js"></script>
<script src="__PUBLIC__/Common/Layer/layer.js"></script>
</head>

<body style="background-color:#f8f8f8;">

<section>
<div style="height:50px; line-height:50px; text-align:center; background:#FFF; border-bottom:1px solid #E9E8E9; margin-bottom:15px;">
	<span class="left" style="width:13%;">
		<a href="javascript:history.back(-1);">
			<img src="__PUBLIC__/Mobile/images/cls_left1s.png" style="height:23px; line-height:23px; width:4%;float:left; padding-top:3%; padding-left:2%;">
		</a> 
	</span>
    <span class="left size20" style="width:100%;">选择地址</span>
</div>
<!--常用联系人-->
<div class="Common">
<foreach name="result" item="vo">
	<a href="javascript:void(0)" class="address" id="{$vo.id}">
        <p><b>{$vo.realname}</b><span>{$vo.mobile}</span></p>
        <p><if condition="$vo['status'] eq 1">[<laber style="color:#F00;">默认</laber>]&nbsp;</if>{$vo.prov}{$vo.city}{$vo.dist}{$vo.address}</p>
    </a>
</foreach>
</div>
</section>

<a href="{:U('Goods/address_add')}" class="Join" style=" width:100%; position:fixed; bottom:0; background:#33BC60;">添加新地址</a>
<script>
	$(".address").click(function(){
		var id = $(this).attr("id");
		location.href="{:U('Goods/goods_count')}?address_id="+id;
	});
</script>
</body>
</html>
